package com.team2.outpatient_sys.pojo;

/**
 * 医生信息 携带 其所处科室的 科室信息
 */
public class DoctorAndDepartment {
    private Integer id;         // 医生id
    private String name;        // 医生姓名
    private String username;    // 用户名
    private String password;    // 登录密码
    private String gender;      // 性别
    private String birth;       // 生日
    private String phone;       // 联系电话
    private Integer deptId;     // 所属科室
    private String hiredate;    // 入职时间
    private Boolean isDirector; // 是否是科室主任

    private Department department;  // 详细科室信息

    public DoctorAndDepartment() {
    }

    public DoctorAndDepartment(Integer id, String name, String username, String password, String gender, String birth, String phone, Integer deptId, String hiredate, Boolean isDirector, Department department) {
        this.id = id;
        this.name = name;
        this.username = username;
        this.password = password;
        this.gender = gender;
        this.birth = birth;
        this.phone = phone;
        this.deptId = deptId;
        this.hiredate = hiredate;
        this.isDirector = isDirector;
        this.department = department;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getHiredate() {
        return hiredate;
    }

    public void setHiredate(String hiredate) {
        this.hiredate = hiredate;
    }

    public Boolean getDirector() {
        return isDirector;
    }

    public void setDirector(Boolean director) {
        isDirector = director;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "DoctorAndDepartment{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gender='" + gender + '\'' +
                ", birth='" + birth + '\'' +
                ", phone='" + phone + '\'' +
                ", deptId=" + deptId +
                ", hiredate='" + hiredate + '\'' +
                ", isDirector=" + isDirector +
                ", department=" + department +
                '}';
    }
}
